package com.ml.mall.bean.req.company;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *   @description    :description 
 *   @author         :zxm
 *   @date           :2021/5/13
 *   @version        :1.0
**/
@ApiModel(description = "地址参数新增model")
@Data
public class CompanyAddrDto {
    @ApiModelProperty(value = "姓名")
//    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "电话")
//    @NotBlank(message = "电话不能为空")
    private String phoneNumber;

    @ApiModelProperty(value = "邮编")
//    @NotBlank(message = "邮编不能为空")
    private String postCode;

    @ApiModelProperty(value = "城市")
//    @NotBlank(message = "城市不能为空")
    private String city;

    @ApiModelProperty(value = "州")
//    @NotNull(message = "州不能为空")
    private Long states;

    @ApiModelProperty(value = "州名，作为查询结果使用，新增与修改时不必传入")
    private String statesName;

    @ApiModelProperty(value = "国家")
//    @NotNull(message = "国家不能为空")
    private Long country;

    @ApiModelProperty(value = "街道地址")
//    @NotBlank(message = "街道地址不能为空")
    private String streetAddress;

    @ApiModelProperty(value = "地址1")
    private String regionalAddress;

    /**
     * email
     */
    @Email(message = "邮箱格式有误")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * entityName
     */
    @ApiModelProperty(value = "实体名")
    private String entityName;
}
